//缓存
class strage {
  static setCache(key: string, data: string) {
    return window.sessionStorage.setItem(key, data)
  }
  static getCache(key: string) {
    return window.sessionStorage.getItem(key)
  }
}
// base64转换
class Base64 {
  static encode(data: string) {
    return window.btoa(data)
  }
  static decode(data: string) {
    return window.atob(data)
  }
}
export { strage, Base64 }
